package tools;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import dao.oc_operator_user.Dao_Oc_Operator_User;
import dao.oc_property_tools.Dao_Oc_Property_Tools;
import dao.oc_station.Dao_Oc_Station;
import dao.oc_user_name.Dao_Oc_User_Name;
import entitybean.oc_operator_user.EntityBeanOc_Operator_User;
import entitybean.oc_user_name.EntityBeanOc_User_Name;

public class ApplicationContextHelp {
	private List<String> s_list;
	private ApplicationContext ctx;

	public ApplicationContextHelp(List<String> list) {
		this.s_list = list;
		Integer len = s_list.size();
		String[] s = new String[len];
		for (int i = 0; i < len; i++) {
			s[i] = s_list.get(i);
		}
		this.ctx = new ClassPathXmlApplicationContext(s);
	}

	public ApplicationContext getCtx() {
		return ctx;
	}

	public void setCtx(ApplicationContext ctx) {
		this.ctx = ctx;
	}

	public List<String> getS_list() {
		return s_list;
	}

	public void setS_list(List<String> sList) {
		s_list = sList;
	}

}
